package io.renren.modules.vastFinance.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.vastFinance.dao.CreditDao;
import io.renren.modules.vastFinance.entity.CreditEntity;
import io.renren.modules.vastFinance.service.CreditService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Description:
 * @Author: syh
 * @CreateTime: 2022/5/26 14:36
 */
@Service("creditService")
public class CreditServiceImpl extends ServiceImpl<CreditDao, CreditEntity> implements CreditService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CreditEntity> page = this.page(
                new Query<CreditEntity>().getPage(params),
                new QueryWrapper<CreditEntity>()
        );

        return new PageUtils(page);
    }
}
